/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

public class Coordenada {
	public Coordenada() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_COORDENADA_TARJETAID_TARJETA) {
			this.tarjetaid_tarjeta = (orm.Tarjeta) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int id_coordenada;
	
	private String clave;
	
	private int valor;
	
	private orm.Tarjeta tarjetaid_tarjeta;
	
	private void setId_coordenada(int value) {
		this.id_coordenada = value;
	}
	
	public int getId_coordenada() {
		return id_coordenada;
	}
	
	public int getORMID() {
		return getId_coordenada();
	}
	
	public void setClave(String value) {
		this.clave = value;
	}
	
	public String getClave() {
		return clave;
	}
	
	public void setValor(int value) {
		this.valor = value;
	}
	
	public int getValor() {
		return valor;
	}
	
	public void setTarjetaid_tarjeta(orm.Tarjeta value) {
		if (tarjetaid_tarjeta != null) {
			tarjetaid_tarjeta.coordenada.remove(this);
		}
		if (value != null) {
			value.coordenada.add(this);
		}
	}
	
	public orm.Tarjeta getTarjetaid_tarjeta() {
		return tarjetaid_tarjeta;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tarjetaid_tarjeta(orm.Tarjeta value) {
		this.tarjetaid_tarjeta = value;
	}
	
	private orm.Tarjeta getORM_Tarjetaid_tarjeta() {
		return tarjetaid_tarjeta;
	}
	
	public String toString() {
		return String.valueOf(getId_coordenada());
	}
	
}
